package com.sxbang.bms.service;


import com.alibaba.fastjson.JSONArray;
import com.sxbang.bms.base.BaseService;
import com.sxbang.bms.base.result.Results;
import com.sxbang.bms.dto.RoleDto;
import com.sxbang.bms.model.SysPermission;
import com.sxbang.bms.model.SysRole;

import java.util.List;

public interface PermissionService extends BaseService<SysPermission,Integer, SysPermission> {

	public Results<SysPermission> listByPage (Integer offset,  Integer limit);

	public Results<SysPermission> listByName ( String name);

	public Results<SysPermission> listByNameAndPage ( String name,  Integer offset,  Integer limit);

	public Results<JSONArray> listAllPermission ();

	public Results<SysPermission> listByRoleId(Integer roleId);

	public Long countByName( String name);
}
